<?php

namespace app\model\zs;

use think\Model;

class ZsMemberCouponSuitRel extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'member_coupon_suit_rel';

    // 设置当前模型的数据库连接
    protected $connection = 'zs';

    public function couponSuitModel()
    {
        return $this->belongsTo(ZsMemberCouponSuit::class, 'sid', 'sid');
    }

    public function couponModel()
    {
        return $this->belongsTo(ZsMemberCouponSuit::class, 'tid', 'tid');
    }
}
